<?php

    class testCmsPro extends CodeIgniterUnitTestCase {

        public function __construct() {
            parent::__construct('test CMS Model');
            $this->load->model('cms');
        }

        public function setUp() {
            
        }

        public function tearDown() {
            
        }

        public function testAllPosts() {

            $res = $this->cms->all_posts(21);
            
            $this->dump($res); 


//            foreach ($res as $key => $value) :
//
//                $res2 = $this->cms->get_post($value['ID']);
//                $this->dump($res2);
//
//            endforeach;
        }

        public function estPictures() {
            $res = $this->cms->get_pictures(24);
//            $this->dump($res);
        }

    }

    